.root {
  margin-bottom: var(--vd-spacing-sm);
}

.add {
  width: 100%;
}

.item {
  display: flex;
  align-items: center;
  padding: 4px;
  border: 1px solid var(--vd-color-border);
  background-color: white;
  border-radius: 4px;
  margin-bottom: var(--vd-spacing-xs);
  user-select: none;
  font-size: var(--vd-font-size-h6);
  position: relative;
  outline: none;

  &::after {
    content: '';
    position: absolute;
    background-color: transparent;
    left: -1px;
    top: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 4px;
    pointer-events: none;
    z-index: 0;
  }

  &:focus::after {
    outline: 4px solid #91caff7a;
  }

  &:global(.editing)::after,
  &:global(.selected)::after {
    border: 2px solid var(--vd-color-primary);
  }
}

.itemContent {
  flex: 1;
  overflow: hidden;
  word-break: break-word;
}

.itemActions {
  display: flex;
  gap: 2px;

  :global(.anticon) {
    font-size: 15px;
    padding: 2px 2px;
    cursor: pointer;
  }
}

.itemCheck {
  margin-right: var(--vd-spacing-xs);
}

.actions {
  font-size: var(--vd-font-size-h6);
  font-weight: 400;
  white-space: nowrap;
}

.menu {
  font-size: 1.1em;
  color: var(--vd-color-primary);
}

.popoverEditor {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
  padding: 12px;

  .popoverEditorHeader {
    margin-bottom: 10px;
  }
}
